<html>
<head>
<!—内部嵌入方式 -->
<script>
function hello()
{
document.getElementById("message").innerHTML="Hello world of Javascript";
}
</script>

<!—外部链接方式 -->
<script src="myScript.js"></script>
</head>

<body>
<p id="message"> ee </p>
<button type="button" onclick="hello();">Try it</button>
</body>
</html>
